package com.wlz;

import com.wlz.service.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * wlz
 *
 * http://bat.ke.qq.com
 * 往期视频加群:516212256 暗号:6
 */
@SpringBootApplication
public class DubboUserServiceConsumerApplication {

    public static void main(String[] args) {

        SpringApplication.run(DubboUserServiceConsumerApplication.class,args);
    }


    @Reference
    private UserService userService;

    @Bean
    public ApplicationRunner runner() {
        return args -> {
            System.out.println(userService.get(1));
        };
    }


}
